package com.ruoyi.common.core.domain.entity;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

/**
 * 小程序菜单权限对象 sys_menu_app
 *
 * @author zhaohongjian
 * @date 2024-02-20
 */
@Data
public class SysMenuApp extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 菜单ID
     */
    private Long menuId;

    /**
     * 菜单名称
     */
    @Excel(name = "菜单名称")
    private String menuName;

    /**
     * 父菜单ID
     */
    private Long parentId;

    /**
     * 权限标识
     */
    @Excel(name = "权限标识")
    private String perms;

    @Excel(name = "选择类型")
    private String menuType;

    @NotNull(message = "显示顺序不能为空")
    private Integer orderNum;

    /**
     * 父菜单名称
     */
    private String parentName;

    private List<SysMenuApp> children = new ArrayList<SysMenuApp>();

}
